const mongoose = require('mongoose')
const baseURI = require('./connection.conf')

mongoose.connect(baseURI, { useNewUrlParser: true, authSource: 'admin' });
const db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', () => {console.log('success')});

